<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link th:href="@{https://cdn.bootcss.com/twitter-bootstrap/3.0.1/css/bootstrap.min.css}" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body>
<!--<span th:text="${pageInfo.list}"></span>-->
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">

            <h1 class="text-center">
                评论列表
            </h1>


            <span>
                <input type="button" value="返回新闻列表" onclick="history.back()" style="float: right">
            </span>

            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>评论编号</th>
                    <th>评论内容</th>
                    <th>评论人</th>
                    <th>评论时间</th>


                </thead>
                <tbody>
                <tr th:each="detail:${commentList}">
                    <td th:text="${detail.id}"></td>
                    <td th:text="${detail.content}"></td>
                    <td th:text="${detail.anthor}"></td>

                    <td th:text="${#dates.format(detail.createdate,'yyyy-MM-dd')}"></td>


                </tr>

            </table>

        </div>
    </div>
</div>


</body>
</html>